
package com.unc.allergyex.objects;



import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

/**
 * This class is the overlay item that is marked by
 * the map pin on the map.
 * 
 * @author Abigail
 *
 */
public class RestaurantPin extends OverlayItem {
	private String name;
	private String address;
	private String id;
	
	/**
	 * This constructor calls the superclass of RestaurantPin - OverlayItem
	 * It sets class variables to the parameters passed to the constructors
	 * 
	 * @param point
	 * @param title
	 * @param snippet
	 * @param restaurant
	 */
	public RestaurantPin(GeoPoint point, String title, String snippet, MapRestaurant restaurant) {
		super(point, title, snippet);
		name = restaurant.getName();
		address = restaurant.getAddress();
		id = restaurant.getId();
	}
	/** Returns String restaurant name */
	public String getName(){
		return name;
	}
	/** Returns String restaurant address */
	public String getAddress(){
		return address;
	}
	/** Returns restaurant's database id */
	public String getId(){
		return id;
	}
	
}
